package com.cxz.demo.loader;

import annotation.DefinedLoadDataMethod;
import annotation.SoiComponent;
import com.cxz.demo.model.UserInfo;
import context.SoiContext;

/**
 * @className: UserDataLoader
 * @author: ocxz1
 * @date: 2025/3/28 上午10:44
 * @Version: 1.0
 * @description: soi
 */
@SoiComponent
public class UserDataLoader {

    @DefinedLoadDataMethod
    public UserInfo getUserInfo(SoiContext soiContext) {
        return soiContext.getBusinessData("userInfo", UserInfo.class);
    }
}
